package com.designoutput.ui.editors.transformEditorClasses
{
	import flash.display.Sprite;
	import flash.geom.Point;

	public class SkewHandle extends Sprite
	{
		private var _radianAngle:Number = 0;
		public function get radianAngle():Number {
			return _radianAngle;
		}
		
		public function setValues(start:Point, end:Point):void {
			var vertexOffset:Point = end.subtract(start);
			
			_radianAngle = Math.atan2(vertexOffset.y, vertexOffset.x);
			
			graphics.clear();
			graphics.lineStyle(8, 0, 0);
			graphics.moveTo(start.x, start.y);
			graphics.lineTo(end.x, end.y);
		}
	}
}